package com.meixun.xuanke.course.config;

import com.meixun.xuanke.course.service.CourseService;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class initConfig implements ApplicationRunner {
    @Resource
    CourseService courseService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        courseService.updateCoureseList();
    }
}
